# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-www-authenticate
pkgver=0.9.2
pkgrel=9
pkgdesc='Parser for WWW-Authenticate headers.'
url='https://pypi.org/project/www-authenticate/#files'
arch=('any')
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/a7/2d/5567291a8274ef5d9b6495a1ec341394ab68933e2396936755b157f87b43/www-authenticate-$pkgver.tar.gz")
sha512sums=('36f031444b897acd00117026b3639870391eb83696f32903d4a0faad974c14da0b5f4ebc12fe5bc8d043a22461ca60df55c6286df0cf43c41078977fe23a0d45')

build() {
  cd "www-authenticate-$pkgver"

  python setup.py build
}

package() {
  cd "www-authenticate-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

